﻿using ChurchDiary.DAL.Contract;
using ChurchDiary.DAL.Methods;
using ChurchDiary.TableEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ChurchDiary.BLL
{
    public class BLL_Settings
    {
        IInitialSettings Settings = new DAL_InitialSettings();
        public EntityFullIntialSettings GetFullIntialSettings(Guid Userid)
        {
            return Settings.GetUserIntialSettings(Userid);
        }
        public EntityFullIntialSettings GetUserSettings(Guid Userid)
        {
            return Settings.GetUserSettings(Userid);
        }
        public string AddUserSettings(string popupName, int Status)
        {
            return Settings.InsertUserSettings(popupName,Status);
        }
        public string ChangePassword(string OldPassword, string NewPassword, Guid Userid)
        {
            return Settings.ChangePassword(OldPassword, NewPassword, Userid);
        }
        public string ChangeProfile(string imagename)
        {
            return Settings.ChangeProfile(imagename);
        }
        public string UpdateControllerAction(EntityControllerActions ControllerActions)
        {
            return Settings.UpdateControllerAndAction(ControllerActions);
        }
        public string UpdateControllerDetails(EntityControllerActions ControllerActions)
        {
            return Settings.UpdateControllerDetails(ControllerActions);
        }
        public List<EntityControllerActions> GetControllerAction()
        {
            return Settings.GetControllerAction();
        }
        public EntityControllerActions GetControllerAction(Guid ActionId)
        {
            return Settings.GetControllerAction(ActionId);
        }
        public string InsertNotification(EntityNotification Notification)
        {
            return Settings.InsertNotificationLog(Notification);
        }
        public List<EntityNotification> GetNotifications()
        {
            return Settings.GetNotifications();
        }
    }
}
